Repository navigation
fix(pm-dispatch): minimum spec gate rejects a titleless prompt that names no work (#4925 residual) - #7633
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 28 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Salvage note (task 14250, lane code-h): PR #4948 was diffed against this canonical PR and current main before its closure as superseded. Nothing unique remains in PR #4948: (1) its enqueue-failure cleanup already landed on main via #4917 as |
Residual of #4925 — the orphan-cleanup half landed in #4917's enqueue-failure compensation (
server.ts:237); this lands the missing minimum spec gate. PR #4948 carried it but is stale and conflicting.Change:
parseSessionRequestnow rejects, with aValidationError(mapped to 400), a session request that has no explicit title and whose prompt is shorter thanMIN_PROMPT_SPEC_CHARS(40). The error names the missing spec:prompt: too short to name any work (N < 40 chars) and no title given — describe the work in the prompt or pass an explicit title.priority/directorystill fails as that field).MIN_PROMPT_SPEC_CHARS = 40is exported (the PR fix(pm-dispatch): no orphan spec-less issues — spec gate + enqueue-failure cleanup (#4925) #4948 value) so callers and tests share one constant.Tests (
bun test test/validate.test.ts test/server.test.ts— 54 pass, 0 fail):priority);server.test.tsbase).Closes #4925.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.